package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbCarAnnualInspectionInspectionMapper;
import com.ruoyi.system.domain.TbCarAnnualInspectionInspection;
import com.ruoyi.system.service.ITbCarAnnualInspectionInspectionService;

/**
 * 年检记录Service业务层处理
 * 
 * @author xiaosiyuan
 * @date 2021-11-12
 */
@Service
public class TbCarAnnualInspectionInspectionServiceImpl implements ITbCarAnnualInspectionInspectionService 
{
    @Autowired
    private TbCarAnnualInspectionInspectionMapper tbCarAnnualInspectionInspectionMapper;

    /**
     * 查询年检记录
     * 
     * @param id 年检记录主键
     * @return 年检记录
     */
    @Override
    public TbCarAnnualInspectionInspection selectTbCarAnnualInspectionInspectionById(String id)
    {
        return tbCarAnnualInspectionInspectionMapper.selectTbCarAnnualInspectionInspectionById(id);
    }

    /**
     * 查询年检记录列表
     * 
     * @param tbCarAnnualInspectionInspection 年检记录
     * @return 年检记录
     */
    @Override
    public List<TbCarAnnualInspectionInspection> selectTbCarAnnualInspectionInspectionList(TbCarAnnualInspectionInspection tbCarAnnualInspectionInspection)
    {
        return tbCarAnnualInspectionInspectionMapper.selectTbCarAnnualInspectionInspectionList(tbCarAnnualInspectionInspection);
    }

    /**
     * 新增年检记录
     * 
     * @param tbCarAnnualInspectionInspection 年检记录
     * @return 结果
     */
    @Override
    public int insertTbCarAnnualInspectionInspection(TbCarAnnualInspectionInspection tbCarAnnualInspectionInspection)
    {
        return tbCarAnnualInspectionInspectionMapper.insertTbCarAnnualInspectionInspection(tbCarAnnualInspectionInspection);
    }

    /**
     * 修改年检记录
     * 
     * @param tbCarAnnualInspectionInspection 年检记录
     * @return 结果
     */
    @Override
    public int updateTbCarAnnualInspectionInspection(TbCarAnnualInspectionInspection tbCarAnnualInspectionInspection)
    {
        return tbCarAnnualInspectionInspectionMapper.updateTbCarAnnualInspectionInspection(tbCarAnnualInspectionInspection);
    }

    /**
     * 批量删除年检记录
     * 
     * @param ids 需要删除的年检记录主键
     * @return 结果
     */
    @Override
    public int deleteTbCarAnnualInspectionInspectionByIds(String[] ids)
    {
        return tbCarAnnualInspectionInspectionMapper.deleteTbCarAnnualInspectionInspectionByIds(ids);
    }

    /**
     * 删除年检记录信息
     * 
     * @param id 年检记录主键
     * @return 结果
     */
    @Override
    public int deleteTbCarAnnualInspectionInspectionById(String id)
    {
        return tbCarAnnualInspectionInspectionMapper.deleteTbCarAnnualInspectionInspectionById(id);
    }
}
